﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EFCore7;

[Table(name: "Biz_Blog")]
public class Biz_Blog
{
    [Key]
    [Description("BlogId")]
    public int BlogId { get; set; }

    [Column(TypeName = "varchar(255)"), Required]
    [Description("Url")]
    public string Url { get; set; }

    [Description("Rating")]
    public int? Rating { get; set; }

    [Description("CreateTime")]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    public List<Biz_Post> Posts { get; set; }
}